﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dycox.Workflows
{
    [Obsolete]
    public class ProcessOperationEventArgs : EventArgs
    {
        public ProcessOperationEventArgs(WFStep step, OperationArguments args)
        {
            if (step == null)
                throw new ArgumentNullException("step");

            if (args == null)
                throw new ArgumentNullException("args");

            _step = step;
            _arguments = args;
        }

        private OperationArguments _arguments;

        public OperationArguments Arguments
        {
            get { return _arguments; }
        }

        private WFStep _step;

        public WFStep Step
        {
            get { return _step; }
        }

        public WFProcess Process
        {
            get
            {
                return _step.Thread.Process;
            }
        }
    }

    public delegate void ProcessOperationEventHandler(object sender, ProcessOperationEventArgs e);
}
